using Gateway.Common.Entity;
using Gateway.Common.Enums;

namespace Gateway.Domain.Entities;

/// <summary>
/// 用户client
/// </summary>
[PrimaryIdAttribute("UCL")]
public class UserClient : AggregateRootEntityBase
{
    /// <summary>
    /// 链接ID
    /// </summary>
    public string ConnectionId { get; set; }
    /// <summary>
    /// 用户名
    /// </summary>
    public string Account { get; set; }

    public UserClient()
    {
        
    }

    public UserClient(string connectionId = default, string account = default)
    {
        ConnectionId = connectionId;
        Account = account;
    }
}